﻿using System;
using fastCSharp;

namespace diantou.web.contest
{
    /// <summary>
    /// 用户动态
    /// </summary>
    [fastCSharp.code.cSharp.webView(IsPool = true, IsReferer = false)]
    partial class user : web.user.view<user>
    {
        /// <summary>
        /// 比赛得分等级集合
        /// </summary>
        [fastCSharp.emit.webView.clearMember]
        private diantou.dataAccess.contest.rating[] ratings;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        protected override bool loadView(int userId)
        {
            if (base.load(userId, diantou.dataModel.path.pub.Default.ContestRankPath))
            {
                ratings = diantou.dataAccess.tcpCall.contest.getRatings(userId);
                return true;
            }
            return false;
        }
    }
}
